Warn when testpoints are inside courtyards - #177
Merged
Conversation
seveibar
marked this pull request as ready for review
August 2, 2026 16:53
Contributor
|
Thank you for your contribution! 🎉 PR Rating: ⭐⭐ Track your contributions and see the leaderboard at: tscircuit Contribution Tracker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
checkTestPointAccessibilityto identify testpoint access centers inside another component's courtyard on the same PCB sidepcb_placement_errornaming both the testpoint and obstructing componentrunAllPlacementChecksand export it publiclyWhy
Courtyard-to-pad comparisons are deliberately excluded from the general footprint overlap check. As a result, a testpoint could be placed beneath an assembled component without any accessibility diagnostic. This adds a targeted check without changing the broader courtyard/footprint overlap semantics.
@tscircuit/corealready consumesrunAllPlacementChecksin its final DRC pass, so the new diagnostic flows into core after this package is released. The checks release workflow is configured to trigger the standard core dependency update.User impact
Designs now receive messages such as:
The check is layer-aware, so a bottom-side testpoint is not blocked by a top-side courtyard.
Validation
bun test— 136 passed, 0 failedbunx tsc --noEmitbun run build